package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @description: 帖子评论传输对象
 * @author: 徐文升
 * @create: 2022-04-17 22:55
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "PostCommentDto", description = "帖子评论传输对象")
public class PostCommentDto {
    @NotNull(message = "帖子编号不能为空")
    @ApiModelProperty(value = "帖子编号", required = true)
    private Integer postId;

    @NotNull(message = "内容不能为空")
    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @ApiModelProperty(value = "回复编号", notes = "哪条评论下的评论（最顶级评论的编号），最顶级评论此字段为空")
    private Integer replyId;

    @ApiModelProperty(value = "评论者编号（uid）", notes = "指明对哪个用户进行回复，最顶级评论此字段为空")
    private Integer targetId;
}
